import request from "@/utils/request";
//  获取相册
export function getAblum(params) {
  return request.get("/api/yp/album", { params: params });
}
// 创建相册
export function CreateAblum(data) {
  return request.post("/api/yp/album", data);
}
//获取图片库
export function GetPic(params) {
  return request.get("/api/yp/upimg", {params});
}
export function GetAblum(params) {
  return request.get("/api/yp/album", params);
}
//修改图片相册
export function EditUpimg(id,params) {
  return request.put("/api/yp/upimg/" + id,params);
}
//修改编辑图片
export function EditAlbum(id) {
  return request.put("/api/yp/album/" + id);
}
//删除相册
export function DelPic(id) {
  return request.delete("/api/yp/album/" + id);
}
//删除图片
export function DelImg(id){
  return request.delete("/api/yp/upimg/" + id);
}

// 获取标签
export function getTag(params) {
  return request.get("/api/yp/tag", { params: params });
}
// 删除标签
export function delTag(id) {
  return request.delete("/api/yp/tag/" + id);
}
// 添加标签
export function addTag(data) {
  return request.delete("/api/yp/tag", data);
}
